package org.code.mallspringboot.service;

import org.code.mallspringboot.pojo.SmsCouponHistory;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

/**
 *
 */
public interface SmsCouponHistoryService {
    /**
        分页 + 查询
     * @param pageNum
     * @param pageSize
     * @param useStatus
     * @param orderSn
     * @param couponId
     * @return
     */
    List<SmsCouponHistory> selectPage(Integer pageNum,
                                      Integer pageSize,
                                      Integer useStatus,
                                      String orderSn,
                                      Integer couponId);

    /**
        总页数
     * @param useStatus
     * @param orderSn
     * @param couponId
     * @return
     */
    int total(Integer useStatus,
              String orderSn,
              Integer couponId);
}
